import Layout from '../../page/index'

export default [{
    path: '/login',
    name: '登录页',
    component: () => import( /* webpackChunkName: "pagelogin" */ '../../page/login/index'),
    meta: {
        keepAlive: true,
        noLogin:true,
        isTab: false,
        isAuth: false
    }
},
{
    path: '/resetPassword',
    name: '重置密码页',
    component: () => import( /* webpackChunkName: "pagelogin" */ '../../page/resetPassword/index'),
    meta: {
        keepAlive: true,
        isNotMenu: true,
        isTab: false,
        isAuth: false
    },
},
{
    path: '/404',
    component: () =>import( /* webpackChunkName: "page404" */ '../../components/error-page/404'),
      name: '404',
      meta: {
          keepAlive: true,
          noLogin:true,
          isTab: false,
          isAuth: false
    }
},
{
    path: '/403',
    component: () => import( /* webpackChunkName: "page403" */ '../../components/error-page/403'),
    name: '403',
    meta: {
        keepAlive: true,
        noLogin:true,
        isTab: false,
        isAuth: false
    }
},
{
    path: '/500',
    component: () =>import( /* webpackChunkName: "page500" */ '../../components/error-page/500'),
    name: '500',
    meta: {
        keepAlive: true,
        noLogin:true,
        isTab: false,
        isAuth: false
    }
},
{
    path: '/',
    name: '主页',
    redirect:  window.$getStore({name:"isIndate"}) && window.$getStore({name:"isIndate"}).isIndate === false && window.$getStore({name:"token"}) === window.$getStore({name:"isIndate"}).token ? '/resetPassword' : '/system/home'
},
{
    path: '/myiframe',
    component: Layout,
    redirect: '/myiframe',
    children: [{
        path: ":routerPath",
        name: 'iframe',
        meta: {
            isIframe: true
        }
    }]
},
{
    path: '/mycustmerForm',
    component: Layout,
    redirect: '/mycustmerForm',
    children: [{
        path: ":routerPath",
        name: 'mycustmerForm',
        component: () =>import( /* webpackChunkName: "mycustmerForm" */ `../../modules/custmerForm/views/module/custmerDynamic`),
        props: true,
        meta: {
            keepAlive:false
        }
    }]
},
{
    path: '/myDesktopHome',
    component: Layout,
    redirect: '/myDesktopHome',
    children: [{
        path: ":routerPath",
        name: 'myDesktopHome',
        component: () =>import( /* webpackChunkName: "desktop" */ `../../modules/desktop/views/setting/homeDynamic`),
        props: true,
        meta: {
            keepAlive:false
        }
    }]
},
{
    path: '/myreport',
    component: Layout,
    redirect: '/myreport',
    children: [{
        path: ":routerPath",
        name: 'myreport',
        component: () =>import( /* webpackChunkName: "report" */ `../../modules/report/views/scheme/preview`),
        props: true,
        meta: {
            keepAlive:false
        }
    }]
},
{
    path: '*',
    redirect: '/404'
},
]